import React, { useState } from 'react';
import { Button } from 'antd';

function UseStateExample() {
    // 声明一个叫 "count" 的 state 变量
    const [count, setCount] = useState(0);

    return (
        <div>
            <h3>Hook useState使用例子</h3>
            <h3>You clicked {count} times</h3>
            <Button onClick={() => setCount(count + 1)}>
                Click me
            </Button>
        </div>
    );
}

export default UseStateExample